import request from "@/utils/request"
export const reqSpuImageList=(spuId)=>request({url:`/admin/product/spuImageList/${spuId}`,method:'get'})
export const reqSpuSaleAttrList=(spuId)=>request({url:`/admin/product/spuSaleAttrList/${spuId}`,method:'get'})
export const reqAttrInfoList=(getCategory1Id,getCategory2Id,getCategory3Id)=>request({url:`/admin/product/attrInfoList/${getCategory1Id}/${getCategory2Id}/${getCategory3Id}`})
export const reqAddSku = (skuInfo)=>request({url:'/admin/product/saveSkuInfo',method:'post',data:skuInfo})
export const reqSkuList=(spuId)=>request({url:`/admin/product/findBySpuId/${spuId}`,method:'get'})
export const reqSku=(page,limit)=>request({url:`/admin/product/list/${page}/${limit}`,method:'get'})
export const reSale=(skuId)=>request({url:`/admin/product/onSale/${skuId}`,method:'get'})
export const reCancel=(skuId)=>request({url:`/admin/product/cancelSale/${skuId}`,method:'get'})
export const reqSkuById=(skuId)=>request({url:`/admin/product/getSkuById/${skuId}`,method:'get'})